package com.woniu.aimd.service.impl;

import com.woniu.aimd.pojo.entity.Wronganswerquestion;
import com.woniu.aimd.pojo.entity.Wrongchoicequestion;
import com.woniu.aimd.mapper.SearchQuestionsMapper;
import com.woniu.aimd.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchServiceLmpl implements SearchService {
@Autowired
private SearchQuestionsMapper searchQuestionsMapper;
    @Override
    public List<String> findpromptC(String user_id,Integer status) {
        return searchQuestionsMapper.findpromptC(user_id,status);
    }
    @Override
    public List<String> findpromptA(String user_id,Integer status) {
        return searchQuestionsMapper.findpromptA(user_id,status);
    }

    @Override
    public List<Wronganswerquestion> findanswerquestionprompt(String prompt) {
        return searchQuestionsMapper.findanswerquestionprompt(prompt);
    }
    @Override
    public List<Wrongchoicequestion> findchoicequestionprompt(String prompt) {
        return  searchQuestionsMapper.findchoicequestionprompt(prompt);
    }
}
